package com.ysc.plugin.callback

import android.os.Parcel
import android.os.Parcelable
import com.ysc.plugin.common.callback.BroadcastCallBack

class PluginCallBack() : BroadcastCallBack() {
    private var callBackData:String = ""
    private var isExecuteFinished:Boolean = false
    override fun onExecuteFinished(data: String) {
        isExecuteFinished = true
        callBackData = data
    }

    fun setCallBackData(callBackData:String){
        this.callBackData = callBackData
    }

    fun getCallBackData():String{
        return callBackData
    }

    fun checkExecuteFinished():Boolean{
        return isExecuteFinished
    }

    fun setExecuteFinishedStatus(isExecuteFinished:Boolean){
        this.isExecuteFinished = isExecuteFinished
    }
}